<template>
  <el-drawer v-model="drawer" title="账单明细" size="50%">
    <BillList :user-id="ownerUserId" />
  </el-drawer>
</template>
<script setup lang="ts">
import BillList from './index.vue'

const drawer = ref(false)
const ownerUserId = ref()

const open = async (userId: number | string) => {
  drawer.value = true
  ownerUserId.value = userId
}
defineExpose({ open })
</script>
